package cn.ylz.ylmall.product.service;

import cn.ylz.ylmall.account.security.CurrentPrincipal;
import cn.ylz.ylmall.product.pojo.param.PCommentAddNewParam;
import cn.ylz.ylmall.product.pojo.vo.PCommentStandardVO;
import cn.ylz.ylmall.product.pojo.vo.PCommentVO;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface IPCommentService {
    void addNew(PCommentAddNewParam param, CurrentPrincipal currentPrincipal, HttpServletRequest req);

    List<PCommentVO> findByProductId(Long id);

    PCommentStandardVO getStandardById(Long commentId);

    void delete(Long commentId, CurrentPrincipal currentPrincipal);

    Long likeComment(Long commentId, Long userId);

    List<Long> likeCommentByUserId(Long productId, Long userId);
}
